package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;

public interface IProductService {
    ServerResponse detail(Integer productId);

    ServerResponse list(Integer categoryId, String keyword, int pageNum, int pageSize, String orderBy);

    ServerResponse listForManager(int pageNum, int pageSize);

    ServerResponse searchProduct(String productName, int productId, int pageNum, int pageSize);

    ServerResponse setSaleStatus(Integer productId, Integer status);

    ServerResponse saveOrUpdateProduct(Product product);

    ServerResponse delete(Integer productId);


}
